﻿using Sl.Upload.Interface;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sl.Upload.Models;

namespace Sl.Upload.FileTest
{
    public class ThumbanailRule : IThumbanailRule
    {
        public List<SectionSize> GetSectionSize(string type)
        {
            List<SectionSize> li = new List<SectionSize>();
            if (type == "dynamic")
            {
                SectionSize w = new SectionSize();
                w.Name = "L420_420";
                w.Width = 420;
                w.Height = 420;
                li.Add(w);
            }
            else if (type == "avatar")
            {
                SectionSize w = new SectionSize();
                w.Name = "L140_140";
                w.Width = 140;
                w.Height = 140;
                li.Add(w);
            }
            return li;
        }
    }
}